package com.sam.security.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * The Class User.
 */
@SuppressWarnings("unchecked")
public class User implements Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/** The roles. */
	private List<Role> roles;

	/** The username. */
	private String username;

	/** The password. */
	private String password;

	/** The enabled. */
	@SuppressWarnings("unused")
	private boolean enabled;

	/** The remember me. */
	private boolean rememberMe;

	/** The auths. */
	private List<Authority> auths = new ArrayList();

	/**
	 * Gets the auths.
	 * 
	 * @return the auths
	 */
	public List<Authority> getAuths() {
		return auths;
	}

	/**
	 * Sets the auths.
	 * 
	 * @param auths
	 *            the new auths
	 */
	public void setAuths(List<Authority> auths) {
		this.auths = auths;
	}

	/**
	 * Gets the roles.
	 * 
	 * @return the roles
	 */
	public List<Role> getRoles() {
		return roles;
	}

	/**
	 * Sets the roles.
	 * 
	 * @param roles
	 *            the new roles
	 */
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	/**
	 * Gets the serial version uid.
	 * 
	 * @return the serial version uid
	 */
	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	/**
	 * Gets the password.
	 * 
	 * @return the password
	 */
	public String getPassword() {
		// TODO Auto-generated method stub
		return password;
	}

	/**
	 * Gets the username.
	 * 
	 * @return the username
	 */
	public String getUsername() {
		// TODO Auto-generated method stub
		return username;
	}

	/**
	 * Checks if is account non expired.
	 * 
	 * @return true, if is account non expired
	 */
	public boolean isAccountNonExpired() {
		// TODO Auto-generated method stub
		return true;
	}

	/**
	 * Checks if is account non locked.
	 * 
	 * @return true, if is account non locked
	 */
	public boolean isAccountNonLocked() {
		// TODO Auto-generated method stub
		return true;
	}

	/**
	 * Checks if is credentials non expired.
	 * 
	 * @return true, if is credentials non expired
	 */
	public boolean isCredentialsNonExpired() {
		// TODO Auto-generated method stub
		return true;
	}

	/**
	 * Checks if is enabled.
	 * 
	 * @return true, if is enabled
	 */
	public boolean isEnabled() {
		// TODO Auto-generated method stub
		return true;
	}

	/**
	 * Sets the username.
	 * 
	 * @param username
	 *            the new username
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * Sets the password.
	 * 
	 * @param password
	 *            the new password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Sets the enabled.
	 * 
	 * @param enabled
	 *            the new enabled
	 */
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	/**
	 * Checks if is remember me.
	 * 
	 * @return true, if is remember me
	 */
	public boolean isRememberMe() {
		return rememberMe;
	}

	/**
	 * Sets the remember me.
	 * 
	 * @param rememberMe
	 *            the new remember me
	 */
	public void setRememberMe(boolean rememberMe) {
		this.rememberMe = rememberMe;
	}
}
